package com.lvmama.rhino.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lvmama.rhino.entity.PVUVConditionVO;
import com.lvmama.rhino.mapper.PVUVMapper;
import com.lvmama.rhino.pojo.PVUV;
import com.lvmama.rhino.service.PVUVService;

@Service("pVUVService")
public class PVUVServiceImpl implements PVUVService{
    
    @Autowired
    private PVUVMapper pVUVMapper;

    /**
     * 根据条件查询pv和uv统计量
     * @param pVUVConditionVO
     * @return
     */
    @Override
    public PageInfo<PVUV> getPVUVList(PVUVConditionVO pVUVConditionVO) {
        PageHelper.startPage(pVUVConditionVO.getPage(), pVUVConditionVO.getPageSize());
        List<PVUV> pVUVList = pVUVMapper.getPVUVList(pVUVConditionVO);
        PageInfo<PVUV> page = new PageInfo<PVUV>(pVUVList);
        return page;
    }

}
